Skip to content

fix: use hasInjectionContext in useApolloClient before calling inject#1529

Merged
Akryum merged 1 commit intovuejs:v4from
DawidKopys:injection-context-fix
Jan 24, 2024
Merged

fix: use hasInjectionContext in useApolloClient before calling inject#1529
Akryum merged 1 commit intovuejs:v4from
DawidKopys:injection-context-fix

Conversation

@DawidKopys
Copy link
Contributor

Correct condition before calling inject() inside useApolloClient - use hasInjectionContext(). Appropriate tests were added that would fail without these changes.

It fixes #1528 - take a look at this issue for more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useApolloClient checks wrong conditions before calling inject()

2 participants